package com.mvp.shq.washer.ui.shop.category;

import com.mvp.shq.washer.entity.result.BaseResult;
import com.mvp.shq.washer.entity.shop.Category;
import com.mvp.shq.washer.http.RxSchedulers;
import com.mvp.shq.washer.http.ShopApi;

import java.util.List;

import io.reactivex.Observable;

/**
 * Created by shq1 on 2017/9/30.
 */

public class Model implements CategoryConstract.Model {
    @Override
    public Observable<BaseResult<List<Category>>> getCategory() {
        return ShopApi.getInstance().service
                .getCategory()
                .compose(RxSchedulers.io_main());
    }
}
